<!DOCTYPE html>
<html>
<head>
	<title>维护水分仪</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="js/mui.js"></script>
    <link href="css/mui.css" rel="stylesheet"/>
	<link href="css/common.css" rel="stylesheet"/>
	<link href="js/layui/css/layui.css" rel="stylesheet"/>
	<script src="js/jquery.min.js"></script>
	<!-- Nicky -->
	<link rel="stylesheet" href="css/nicky.css" />
	<script src="js/webdb.js"></script>
</head>
<body class="bg">
	<header class="mui-bar mui-bar-nav mui-bar-transparent bg main-header" >
		<div class="back"><a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left back" >返回</a></div>
		<div class="back" ><a class="mui-icon  mui-pull-center back" >水分仪维护</a></div>
	</header>

	<div class="mui-content bg" > 
		<div class="formBox formBox3"> 
			<p>
				<label>水分仪ID</label>
				<input type="text" placeholder="输入水分仪ID" id="sfyid"/>
			</p>
			<p>
				<label>质检员编号</label>
				<input type="text" placeholder="输入质检员编号" id="zjyid"/>
			</p> 
		</div> 
		
		<div class="btnBox btnBox2"> 
			<button class="nbtn" id="btnBack">返 回</button> 
			<button class="nbtn" id="btnSave">保 存</button> 
		</div>  
    </div> 
	</div>
</body> 
<script type="text/javascript">
	mui.init();
	mui.plusReady(function(){
	//$(function(){
		var sfyid = getSession('SFYID'); 
		if(sfyid){ $('#sfyid').val(sfyid); }
		var zjyid = getSession('ZJYID');
		if(zjyid){ $('#zjyid').val(zjyid); }
		
		$('#btnSave').on('click',function(e){
			var sfyid = $('#sfyid').val().trim();
			var zjyid = $('#zjyid').val().trim();
			if(sfyid.length<1){
				mui.toast('输入水分仪ID');  return false;
			}
			if(zjyid.length<1){
				mui.toast('输入质检员编号');  return false;
			}
			setSession('SFYID',sfyid);
			setSession('ZJYID',zjyid);
			mui.back(); 
		});
		$('#btnBack').on('click',function(e){
			mui.back();
		});
		
	});
</script>
</html>